
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGStereoBufferViewport.h>
#include <OpenSG/OSGStereoBufferViewportBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGRenderAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StereoBufferViewport_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_StereoBufferViewport()
{
    scope* osg_StereoBufferViewportBase_scope = new scope(
    class_< osg::StereoBufferViewportBase, bases< osg::Viewport > , boost::noncopyable >("StereoBufferViewportBase", no_init)
//        .def_readonly("LeftBufferFieldMask", &osg::StereoBufferViewportBase::LeftBufferFieldMask)
//        .def_readonly("RightBufferFieldMask", &osg::StereoBufferViewportBase::RightBufferFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::StereoBufferViewportBase::MTInfluenceMask)
        .def("getClassType", &osg::StereoBufferViewportBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::StereoBufferViewportBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::StereoBufferViewportBase::*)() )&osg::StereoBufferViewportBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::StereoBufferViewportBase::*)() const)&osg::StereoBufferViewportBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::StereoBufferViewportBase::getContainerSize)
        //.def("getLeftBuffer", (bool& (osg::StereoBufferViewportBase::*)() )&osg::StereoBufferViewportBase::getLeftBuffer)
        .def("getLeftBuffer", (const bool& (osg::StereoBufferViewportBase::*)() const)&osg::StereoBufferViewportBase::getLeftBuffer, return_value_policy< copy_const_reference >())
        //.def("getRightBuffer", (bool& (osg::StereoBufferViewportBase::*)() )&osg::StereoBufferViewportBase::getRightBuffer)
        .def("getRightBuffer", (const bool& (osg::StereoBufferViewportBase::*)() const)&osg::StereoBufferViewportBase::getRightBuffer, return_value_policy< copy_const_reference >())
        .def("setLeftBuffer", &osg::StereoBufferViewportBase::setLeftBuffer)
        .def("setRightBuffer", &osg::StereoBufferViewportBase::setRightBuffer)
        .def("getBinSize", &osg::StereoBufferViewportBase::getBinSize)
        .def("copyToBin", &osg::StereoBufferViewportBase::copyToBin)
        .def("copyFromBin", &osg::StereoBufferViewportBase::copyFromBin)
        .def("create", &osg::StereoBufferViewportBase::create)
        .def("createEmpty", &osg::StereoBufferViewportBase::createEmpty)
        .def("shallowCopy", &osg::StereoBufferViewportBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::StereoBufferViewportBase::NextFieldId;
    scope().attr("LeftBufferFieldId") = (int)osg::StereoBufferViewportBase::LeftBufferFieldId;
    scope().attr("RightBufferFieldId") = (int)osg::StereoBufferViewportBase::RightBufferFieldId;

    delete osg_StereoBufferViewportBase_scope;

    class_< osg::StereoBufferViewport, bases< osg::StereoBufferViewportBase > , boost::noncopyable, osg::StereoBufferViewportRefPtr >("StereoBufferViewport", no_init)
        .def("changed", &osg::StereoBufferViewport::changed)
        .def("dump", &osg::StereoBufferViewport::dump, osg_StereoBufferViewport_dump_overloads_0_2())
        .def("draw", &osg::StereoBufferViewport::draw)
        .def("render", &osg::StereoBufferViewport::render)
    ;


    register_ptr_to_python<osg::StereoBufferViewportPtr>();
    implicitly_convertible<osg::StereoBufferViewportRefPtr, osg::StereoBufferViewportPtr>();
    implicitly_convertible<osg::StereoBufferViewportPtr, osg::ViewportPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::StereoBufferViewportPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::StereoBufferViewportPtr>);
}

